/**
 * @(#)MomoUserDaoImpl.java 2018年4月3日
 * Copyright(C) 2018年4月3日 ZHEXIN IT CO.,LTD. All rights reserved.
 */
package org.jsbd.boss.dao.impl;


import java.util.List;

import org.jsbd.boss.dao.IMomoUserDao;
import org.jsbd.boss.domian.channel.MomoUser;
import org.jsbd.boss.domian.channel.RetentTaskVo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Repository;

import edu.hziee.common.queue.IBatchExecutor;

/**
 * 陌陌用户DAO实现类
 * @author <a href="mailto:zhouchao@zhexinit.com" >周超</a>
 * @version 1.0.0
 */
@Repository("momoUserDao")
public class MomoUserDaoImpl extends CrackLogBaseDao implements IMomoUserDao,IBatchExecutor<RetentTaskVo> {
	public static final Logger LOGGER = LoggerFactory.getLogger(MomoUserDaoImpl.class);

	@Override
	public boolean saveMomoUser(MomoUser user) {
		super.insert("qy_momo_user_info.INSERT_MOMO_USER_INFO", user);
		return true;
	}

	@Override
	public void execute(List<RetentTaskVo> records) {
		super.batchUpdate("qy_momo_user_info.UPDATE_MOMO_USER_INFO_FILE", records);
	}
	
}
